package nc.ui.tc.month_schedule_b;

import nc.ui.pub.bill.BillCardPanel;
import nc.ui.pub.bill.BillListPanel;
import nc.ui.pub.config.VarConfig;

public class HiddenItems {

	public static void hiddenI(BillCardPanel billCardPanel) {
		int key = 0;
		try {
			key = Integer.valueOf(VarConfig.get("MonthKey").toString());
		} catch (Exception e) {
			key=0;
		}
		String[] items = null;

		switch (key) {
		case 1:
			items = new String[] { "mfee1","mcapital1","fee1adjust","capital1adjust" };
			break;
		case 2:
			items = new String[] { "mfee2","mcapital2","fee2adjust","capital2adjust" };
			break;
		case 3:
			items = new String[] { "mfee3","mcapital3","fee3adjust","capital3adjust" };
			break;
		case 4:
			items = new String[] { "mfee4","mcapital4","fee4adjust","capital4adjust" };
			break;
		case 5:
			items = new String[] {"mfee5","mcapital5","fee5adjust","capital5adjust" };
			break;
		case 6:
			items = new String[] { "mfee6","mcapital6","fee6adjust","capital6adjust"};
			break;
		case 7:
			items = new String[] { "mfee7","mcapital7","fee7adjust","capital7adjust" };
			break;
		case 8:
			items = new String[] { "mfee8","mcapital8","fee8adjust","capital8adjust" };
			break;
		case 9:
			items = new String[] { "mfee9","mcapital9","fee9adjust","capital9adjust" };
			break;
		case 10:
			items = new String[] { "mfee10","mcapital10","fee10adjust","capital10adjust"};
			break;
		case 11:
			items = new String[] { "mfee11","mcapital11","fee11adjust","capital11adjust"};
			break;
		case 12:
			items = new String[] { "mfee12","mcapital12","fee12adjust","capital12adjust" };
			break;
		default:
			 items = new String[] {
				"mfee1","mcapital1","fee1adjust","capital1adjust",
				"mfee2","mcapital2","fee2adjust","capital2adjust",
				"mfee3","mcapital3","fee3adjust","capital3adjust",
				"mfee4","mcapital4","fee4adjust","capital4adjust",
				"mfee5","mcapital5","fee5adjust","capital5adjust",
				"mfee6","mcapital6","fee6adjust","capital6adjust",
				"mfee7","mcapital7","fee7adjust","capital7adjust",
				"mfee8","mcapital8","fee8adjust","capital8adjust",
				"mfee9","mcapital9","fee9adjust","capital9adjust", 
				"mfee10","mcapital10","fee10adjust","capital10adjust",
				"mfee11","mcapital11","fee11adjust","capital11adjust",
				"mfee12","mcapital12","fee12adjust","capital12adjust"
				};
			break;
		}

		for (int i = 0; i < items.length; i++) {
			billCardPanel.showBodyTableCol(items[i]);
		}
	}
	
	public static void hiddenI1(BillCardPanel billCardPanel) {
		int key = 0;
		try {
			key = (Integer) VarConfig.get("MonthKey");
		} catch (Exception e) {
			key=0;
		}
		String[] items = null;

		switch (key) {
		case 1:
			items = new String[] { "mfee1","mcapital1" };
			break;
		case 2:
			items = new String[] { "mfee2","mcapital2"};
			break;
		case 3:
			items = new String[] { "mfee3","mcapital3" };
			break;
		case 4:
			items = new String[] { "mfee4","mcapital4"};
			break;
		case 5:
			items = new String[] {"mfee5","mcapital5"};
			break;
		case 6:
			items = new String[] { "mfee6","mcapital6"};
			break;
		case 7:
			items = new String[] { "mfee7","mcapital7"};
			break;
		case 8:
			items = new String[] { "mfee8","mcapital8"};
			break;
		case 9:
			items = new String[] { "mfee9","mcapital9"};
			break;
		case 10:
			items = new String[] { "mfee10","mcapital10"};
			break;
		case 11:
			items = new String[] { "mfee11","mcapital11"};
			break;
		case 12:
			items = new String[] { "mfee12","mcapital12"};
			break;
		default:
			 items = new String[] {
				"mfee1","mcapital1",
				"mfee2","mcapital2",
				"mfee3","mcapital3",
				"mfee4","mcapital4",
				"mfee5","mcapital5",
				"mfee6","mcapital6",
				"mfee7","mcapital7",
				"mfee8","mcapital8",
				"mfee9","mcapital9",
				"mfee10","mcapital10",
				"mfee11","mcapital11",
				"mfee12","mcapital12"
				};
			break;
		}

		for (int i = 0; i < items.length; i++) {
			billCardPanel.showBodyTableCol(items[i]);
		}
	}
}
